*------------------------------------------------------------------------------*
* Family history - Dinas, Fouka, Schläpfer - JoP
*------------------------------------------------------------------------------*

*------------------------------------------------------------------------------*
* Table A1-A2
*------------------------------------------------------------------------------*



*------------------------------------------------------------------------------*
* Greece
*------------------------------------------------------------------------------*

use greece, clear


sum age female primary secondary university publicemp privateemp retired selfemp farmer student homemaker unemployed inc1000 inc3000 inc5000 nd syriza pasok anel xa potami kke if T==0
sum age female primary secondary university	publicemp privateemp retired selfemp farmer student homemaker unemployed inc1000 inc3000 inc5000 nd syriza pasok anel xa potami kke if T==1
estpost ttest age female primary secondary university publicemp privateemp retired selfemp farmer student homemaker unemployed inc1000 inc3000 inc5000 nd syriza pasok anel xa potami kke, by(T) unequal
esttab .,b(a2) se(a2) star(+ 0.1 * 0.05 ** 0.01)

*------------------------------------------------------------------------------*
* Germany
*------------------------------------------------------------------------------*


use germany, clear


sum age female expellee income_ok realschule abitur university cdu17 spd17 afd17 fdp17 dielinke17 gruene17
sum age female income_ok realschule abitur university cdu17 spd17 afd17 fdp17 dielinke17 gruene17 if control==1
sum age female income_ok realschule abitur university cdu17 spd17 afd17 fdp17 dielinke17 gruene17 if t1==1
estpost ttest age female income_ok realschule abitur university cdu17 spd17 afd17 fdp17 dielinke17 gruene17, by(t1) unequal
esttab ., se star(* 0.1 ** 0.05 *** 0.01)

